package com.xisan.practice;

import com.xisan.practice.aop.serivce.impl.TestServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class PracticeApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(PracticeApplication.class, args);
        TestServiceImpl bean = context.getBean(TestServiceImpl.class);
        System.out.println(bean.getClass());
        bean.eatCarrot();
        bean.eatCabbage();
        bean.eatFish();
    }

}
